import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/page/layout/Layout'
import parking from '@/page/parking'
import earlyWarning from '@/page/earlyWarning'
import earlyWarning_ from '@/page/earlyWarning_'
import eqStatusWatch from '@/page/eqStatusWatch'
import analyze from '@/page/analyze'
import feature from '@/page/feature'
import docking from '@/page/docking'
import lineMap from '@/page/lineMap'
import dockings from '@/page/dockings'
import index from '@/page/index'
import riding from '@/page/riding'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/index'
    },
    {
      name:'earlyWarning_',
      path:'/earlyWarning_',
      component:earlyWarning_
    },
    {
      path:'/index',
      component: Layout,
      children:[
        {
          name:'index',
          path:'/index',
          component:index
        },
        {
          name:'earlyWarning',
          path:'/earlyWarning',
          component:earlyWarning
        },
        {
          name:'lineMap',
          path:'/lineMap',
          component:lineMap
        },
        {
          name:'parking',
          path:'/parking',
          component:parking
        },
        {
          name:'eqStatusWatch',
          path:'/eqStatusWatch',
          component:eqStatusWatch
        },
        {
          name:'analyze',
          path:'/analyze',
          component:analyze
        },
        {
          name:'feature',
          path:'/feature',
          component:feature
        },
        {
          name:'docking',
          path:'/docking',
          component:docking
        },
        {
          name:'dockings',
          path:'/dockings',
          component:dockings
        },
        {
          name:'riding',
          path:'/riding',
          component:riding
        }
      ]
    },
  ]
})
